<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <input type="text" v-on:keyup.aaa="handle"  v-model="info">
    </div>
    <script>
        /*
            事件绑定-自定义按键修饰符
            规则：自定义按键修饰符名字是自定义的，但是对应的值必须是按键对应event.keyCode的值
        */
        Vue.config.keyCodes.aaa = 65
         var vm = new Vue({
            el:'#app',
            data:{
            info:'',
               uname:'',
               pwd:''
            },
            
            methods:{
                handle:function(event){
                    console.log(event.keyCode);
                }
            }
        });
    </script>
</body>
</html>